<script>
  import { createEventDispatcher } from 'svelte'
  let s = true
  const dispatch = createEventDispatcher()
  const change = () => {dispatch('change', {status: s = !s}); }
</script>

<div>
  <button class="btn btn-primary" on:click={change}>Change</button>
</div>
